from selenium import webdriver
from selenium.webdriver.common.by import By
dr =webdriver.Firefox()
dr.get('https://www.baidu.com/')
dr.find_element(By.ID,'kw').send_keys('python selenium')